function go() {
  return 10000 
}

var tmhandler = null
clearInterval(tmhandler)
/*
tmhandler = setInterval(
  ()=>{
    if (go()===10000) {
      console.log("hahahah")
      clearTimeout(tmhandler)
      console.log(tmhandler)
    }
  }
  , 2000)
console.log(tmhandler)*/

tmhandler = setInterval(()=> {
  
})